<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 5/26/21
 * Time: 5:15 PM
 */

namespace app\api\model;

// 店长
use think\model\concern\SoftDelete;

class TeamUser extends BaseModel
{
    use SoftDelete;

    // 团信息
    public function team()
    {
        return $this->belongsTo('Team','team_id','id');
    }

    // 用户信息
    public function user()
    {
        return $this->belongsTo('User','user_id','id');
    }

}